package com.lill.system.constant;

public enum ProjectType {
	
    ERP("erp","erp系统"),
    PERSONNEL("personnel","人事系统"),
    MALL("mall","商城系统");

    private String val;
    private String name;

    private ProjectType(String val, String name) {
		this.val = val;
		this.name = name;
	}

    public String getVal() {
        return val;
    }

	public void setVal(String val) {
        this.val = val;
    }

    public String getContent() {
        return name;
    }

    public void setContent(String name) {
        this.name = name;
    }
    
    public static String findVal(String value) {
    	String val=null;
    	ProjectType[] projectTypeList=values();
    	for (int i = 0; i < projectTypeList.length; i++) {
    		if(projectTypeList[i].getVal().toUpperCase().equals(value.toUpperCase())){
    			val=value.toLowerCase();break;
    		}
		}
    	return val;
	}
    
}
